<?php

namespace app\common\model;

use think\Model;

class School extends Model
{

    // 表名,不含前缀
    protected $name = 'school';
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = 'create_time';
    protected $updateTime = 'update_time';

    /** 
     * 列表
     */
    public function dataList($dis = [], $field = '*', $order = 'id desc')
    {
        return $this->where($dis)->field($field)->order($order)->select();
    }
}